import { memo, useEffect } from "react";
import styles from "./top.module.scss";
import { useNavigate } from "react-router-dom";
let Top: React.FC<{ title: string }> = ({ title }) => {
  let to: any = useNavigate();
  // console.log(to);
  useEffect(() => {}, []);
  return (
    <>
      <div className={styles.box}>
        <i className="iconfont icon-fanhui" onClick={() => to(-1)}></i>
        <p>{title}</p>
      </div>
    </>
  );
};
export default memo(Top);
